const state = {
  userinfo: {
    username: 'zs',
    age: '17',
    class: '7班'
  }
}
const mutations = {}
const actions = {}
const getters = {
  upper(state) {
    return state.userinfo.username.toUpperCase()
  }
}
export default {
  namespaced: true,
  state, mutations, actions, getters
}